
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加策略</title>
    <link rel="stylesheet" href="__CDN__/assets/css/addPolicy.css">
    <link rel="stylesheet" href="__CDN__/assets/css/jedate.css">
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>

<div align="center">
    <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
        <table id="table1" width="100%" border="0" cellspacing="0" cellpadding="0" class="tab">
            <tbody>
            <tr>
                <th>条件名称</th>
                <th>评分(0-100)</th>
                <th>最近天数(1-60天)</th>
                <th>客户真实度(0-100)</th>
                <th>IP类型</th>
            </tr>
            <tr>
                <td>
                    <div align="center">
                        <input id="c-title" data-rule="required;" name="row[title]" class="inp1" style="width:200px" type="text" value="{$row.title}">
                    </div>
                </td>
                <td>
                    <div align="center">
                        <input id="c-score" data-rule="required;integer;range(0~100)" class="inp1" name="row[score]" type="number" value="{$row.score}">
                    </div>
                </td>
                <td>
                    <div align="center">
                        <input id="c-days" data-rule="required;integer;range(1~60)" class="inp1" name="row[days]" type="number" value="{$row.days}">
                    </div>
                </td>
                <td>
                    <div align="center">
                        <select id="c-trueness_con" name="row[trueness_con]" style="width: 100px;">
                            <option value=" "> </option>
                            <option value=">" {if condition="$row.trueness_con eq '>'" } selected {/if}> > </option>
                            <option value=">=" {if condition="$row.trueness_con eq '>='" } selected {/if}> >= </option>
                            <option value="=" {if condition="$row.trueness_con eq '='" } selected {/if}> = </option>
                            <option value="<=" {if condition="$row.trueness_con eq '<='" } selected {/if}> <= </option>
                            <option value="<" {if condition="$row.trueness_con eq '<'" } selected {/if}> < </option>
                        </select>
                        <input id="c-trueness" data-rule="required;integer;range(0~100)" class="inp1" name="row[trueness]" type="number" value="{$row.trueness}">
                    </div>
                </td>
                <td>
                    <div align="center">
                        <label><input type="checkbox" value="数据中心" name="row[type_id][0]" {if condition="in_array('数据中心',$row['new_arr'])"} checked{/if}>数据中心</label>
                        <label><input type="checkbox" value="专用出口" name="row[type_id][1]" {if condition="in_array('专用出口',$row['new_arr'])"} checked{/if}>专用出口</label>
                        <label><input type="checkbox" value="普通宽带" name="row[type_id][2]" {if condition="in_array('普通宽带',$row['new_arr'])"} checked{/if}>普通宽带</label>
                        <label><input type="checkbox" value="移动宽带" name="row[type_id][3]" {if condition="in_array('移动宽带',$row['new_arr'])"} checked{/if}>移动宽带</label>
                        <label><input type="checkbox" value="骨干节点" name="row[type_id][4]" {if condition="in_array('骨干节点',$row['new_arr'])"} checked{/if}>骨干节点</label>
                        <label><input type="checkbox" value="已知爬虫" name="row[type_id][5]" {if condition="in_array('已知爬虫',$row['new_arr'])"} checked{/if}>已知爬虫</label>
                        <label><input type="checkbox" value="中小运营商" name="row[type_id][6]" {if condition="in_array('中小运营商',$row['new_arr'])"} checked{/if}>中小运营商</label>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
        <table id="table2" width="100%" border="0" cellspacing="0" cellpadding="0" class="tab">
            <tr>
                <th>省份(示例:'省份1','省份2','省份3')</th>
                <th>城市(示例:'城市1','城市2','城市3')</th>
                <th>访问次数</th>
            </tr>
            <tr>
                <td>
                    <div align="center">
                        <select id="c-provice_include" name="row[provice_include]" style="width: 100px;">
                            <option value=""> </option>
                            <option value="包含" {if condition="$row.provice_include eq '包含'"} selected {/if}> 包含</option>
                            <option value="不包含" {if condition="$row.provice_include eq '不包含'"} selected {/if}> 不包含</option>
                        </select>
                        <input id="c-provice" class="inp1"  name="row[provice]" style="width: 350px" type="text" value="{$row.provice}">
                    </div>
                </td>
                <td>
                    <div align="center">
                        <select id="c-city_include" name="row[city_include]" style="width: 100px;">
                            <option value=""> </option>
                            <option value="包含" {if condition="$row.provice_include eq '包含'"} selected {/if}> 包含</option>
                            <option value="不包含" {if condition="$row.provice_include eq '不包含'"} selected {/if}> 不包含</option>
                        </select>
                        <input id="c-city" name="row[city]" class="inp1" style="width: 350px" type="text" value="{$row.city}">
                    </div>
                </td>
                <td>
                    <div align="center">
                        <select id="c-visit_con" name="row[visit_con]" style="width: 100px;">
                            <option value="IP访问次数>" {if condition="$row.visit_con eq 'IP访问次数'"} selected {/if}>IP访问次数></option>
                            <option value="IP段访问总次数>" {if condition="$row.visit_con eq 'IP段访问总次数'"} selected {/if}>IP段访问总次数></option>
                            <option value="IP段访问IP个数>" {if condition="$row.visit_con eq 'IP段访问IP个数'"} selected {/if}>IP段访问IP个数></option>
                        </select>
                        <input id="c-visit" name="row[visit]" class="inp1" type="number" value="{$row.visit}">
                    </div>
                </td>
            </tr>
        </table>
        <table id="table3" width="100%" border="0" cellspacing="0" cellpadding="0" class="tab">
            <tr>
                <th>运营商</th>
                <th>时间范围</th>
            </tr>
            <tr>
                <td>
                    <div align="center">
                        <label style="width: 100px;display: inline-block"><input type="checkbox" name="row[carrier][1]" value="移动" {if condition="in_array('移动',$row['new_carrier'])"} checked{/if}>移动</label>
                        <label style="width: 100px;display: inline-block"><input type="checkbox" name="row[carrier][2]" value="联通" {if condition="in_array('联通',$row['new_carrier'])"} checked{/if}>联通</label>
                        <label style="width: 100px;display: inline-block"><input type="checkbox" name="row[carrier][3]" value="电信" {if condition="in_array('电信',$row['new_carrier'])"} checked{/if}>电信</label>
                        <label style="width: 100px;display: inline-block"><input type="checkbox" name="row[carrier][0]" value="其他" {if condition="in_array('其他',$row['new_carrier'])"} checked{/if}>其他</label>
                    </div>
                </td>
                <td>
                    <div align="center">
                        <span>开始时间：</span>
                        <input id="c-begintime"  name="row[begintime]" type="text" class="jeinput" value="{$row.begintime|date='Y-m-d H:i',###}">
                        <span>结束时间：</span>
                        <input id="c-endtime"  name="row[endtime]" type="text" class="jeinput" value="{$row.endtime|date='Y-m-d H:i',###}">
                    </div>
                </td>
            </tr>
        </table>
        <div align="center" style="width:90%; height:40px"><br>
            <button class="FontWeight btn btn-success btn-embossed disabled" type="submit" value="确定" style="height:30px; width:90px">{:__('OK')}</button>
            &nbsp;
            <button class="FontWeight btn btn-default btn-embossed" type="reset" value="取消" style="height:30px; width:90px">{:__('Reset')}</button>
        </div>
    </form>

    <script src="__CDN__/assets/js/jedate.min.js"></script>
    <script>
        jeDate("#c-begintime",{
            theme:{bgcolor:"#00A1CB",pnColor:"#00CCFF"},
            format: "YYYY-MM-DD hh:mm"
        });

        jeDate("#c-endtime", {
            theme: {bgcolor: "#00A1CB", pnColor: "#00CCFF"},
            format: "YYYY-MM-DD hh:mm"
        });
    </script>
</div>
</body>
</html>
